package com.yq.light.note.code.dao;

import com.yq.light.commons.code.entity.Note;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoteDao {

    /**
     * insert新笔记
     * @param note
     * @return
     */
    public int newNote(Note note);

    /**
     * select笔记列表
     * @param ownerAccount
     * @return
     */
    public List<Note> fetchNoteList(@Param("ownerAccount") String ownerAccount);
}
